-- Teams: Immigrants
GM.Name 	= "Future Rift RP"
GM.Author 	= "Tigerbeetweenie"
GM.Email 	= "tigerbeetweenie@gmail.com"
GM.Website 	= "http://hammerstudios.forumotion.com"
GM.Help		= "Read the MOTD. This is a fairly in-depth roleplay gamemode."
 
local teamcmdprefix = "job_"
local moderator_usergroup = "moderator"
local jobtable = {}
local jobdesctable = {}
local jobmodeltable = {}
local jobpermissions = {}

jobtable[1] = "Immigrant"
jobtable[2] = "Laborer"
jobtable[3] = "LERF"
jobtable[4] = "Homeless"

jobdesctable[1] = "These guys are new to the city. They need to find a job (or not.)"
jobdesctable[2] = "A hardworking blue collar worker. Average citizen."
jobdesctable[3] = "Basically the equivalent of the fuzz. AKA Law enforcement response force."
jobdesctable[4] = "STUPID KIDS! DON'T BEAT ME!!! AARRRRGGHHH!!!!!1!111!1one"

jobmodeltable[1] = ""
jobmodeltable[2] = ""
jobmodeltable[3] = ""
jobmodeltable[4] = ""

jobpermissions[1] = ""
jobpermissions[2] = ""
jobpermissions[3] = ""
jobpermissions[4] = ""

team.SetUp( 1, jobtable[1], Color( 125, 125, 125, 255 )) 	    --Fresh off the boat bitches!
team.SetUp( 2, jobtable[2], Color( 225, 225, 0 , 225 )) 		--Blue collar. Fuck you suits.
team.SetUp( 3, jobtable[3], Color( 225, 225, 0 , 225 )) 	    --Law enforcement response force
team.SetUp( 4, jobtable[4], Color(0, 255, 0, 0))                --Homeless

function GM:PlayerInitialSpawn( ply ) 		--"When the player first joins the server and spawns" function.

    ply:ConCommand( "setjob_menu" ) 		--Run the console command when the player first spawns.
 
end 										--End the "when player first joins server and spawn" function.


--Prevent punting with the gravity gun.
function gravgunPunt( userid, target )
	if userid:IsAdmin() then
		return true // Only let admins punt items.
	else
		if SERVER then DropEntityIfHeld( target ) end
		return false // Don't let the minge's punt items at people!
	end
end
 
hook.Add( "GravGunPunt", "gravgunPunt", gravgunPunt )
